package com.ruoyi.community.service;

import java.util.List;
import com.ruoyi.community.domain.Building;

/**
 * 小区楼栋Service接口
 * 
 * @author Linzhuoqun
 * @date 2023-05-08
 */
public interface IBuildingService 
{
    /**
     * 查询小区楼栋
     * 
     * @param buildingId 小区楼栋主键
     * @return 小区楼栋
     */
    public Building selectBuildingByBuildingId(Long buildingId);

    /**
     * 查询小区楼栋列表
     * 
     * @param building 小区楼栋
     * @return 小区楼栋集合
     */
    public List<Building> selectBuildingList(Building building);

    /**
     * 新增小区楼栋
     * 
     * @param building 小区楼栋
     * @return 结果
     */
    public int insertBuilding(Building building);

    /**
     * 修改小区楼栋
     * 
     * @param building 小区楼栋
     * @return 结果
     */
    public int updateBuilding(Building building);

    /**
     * 批量删除小区楼栋
     * 
     * @param buildingIds 需要删除的小区楼栋主键集合
     * @return 结果
     */
    public int deleteBuildingByBuildingIds(Long[] buildingIds);

    /**
     * 删除小区楼栋信息
     * 
     * @param buildingId 小区楼栋主键
     * @return 结果
     */
    public int deleteBuildingByBuildingId(Long buildingId);
}
